package com.wxhandle.cleandemo.application.dto.common;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor(access = lombok.AccessLevel.PRIVATE)
@Getter
public class Result {

    private int code;
    private String message;
    
    public static Result ofSuccess(String msg) {
        return new Result(0, msg);
    }
    
    public static Result ofFail(int code, String msg){
        return new Result(code,msg);
    }
}
